<!--<?php
print <<<EOT
-->

<script src="../css/edit.js"></script>
<script>
<!--

function isTrueTime(s) {

    var patrn=/^[\d]{4}-[\d]{2}-[\d]{2}\s[\d]{2}:[\d]{2}$/; 
	
	if (!patrn.exec(s)) {
    	return false;
	}
	
    return true;
} 

function validate(form) {

	
	return true;
}

//-->
</script>

<!--Content Start-->
<table width="95%" border="0" align="center">
  <tr> 
    <td>&nbsp;</td>
  </tr>
  <tr> 
    <td>
      <table width="90%" border="0" align="left" cellpadding="3" cellspacing="3">
        <tr> 
          <td>
          
            <span id="msg_area" class="js_msg">$alert_message</span>
            
            
            <table border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="100%">
                  <form name="form2" method="post"  onsubmit="return validate(this)">                  
                  <input type="hidden" name="action" value="search">
                  <table border="0" cellspacing="1" cellpadding="1">
                    <tr>
                    
                      <td>
                      <strong>From:</strong>&nbsp;
                      <label>
                      <select name="year1" class="text">
                        {$start_year_out}
                      </select>
                      </label> 
                      - 
                      <label>
                      <select name="month1" class="text">
                        {$start_month_out}
                      </select>
                      </label> 
                      -
                      <label>
                      <select name="day1" class="text">
                        {$start_day_out}
                      </select>
                      </label>
                      
                      &nbsp;&nbsp;<strong>To:</strong>&nbsp;
                      
                      <label>
                      <select name="year2" class="text">
                        {$end_year_out}
                      </select>
                      </label> 
                      - 
                      <label>
                      <select name="month2" class="text">
                        {$end_month_out}
                      </select>
                      </label> 
                      -
                      <label>
                      <select name="day2" class="text">
                        {$end_day_out}
                      </select>
                      </label>
                      &nbsp;&nbsp;
                      </td>
                      
			          <td valign="bottom" ><input name="image" type="image" src="../images/admin/bt_search.gif">&nbsp;&nbsp;</td>
			          <td><!--input name="image" type="image" src="../images/admin/excel2.jpg" onClick="return false"--></td>
                    </tr>
                  </table>
                  </form>
			    </td>
              </tr>
            </table>
            
            
            <span id="edit_area"></span>
            
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr><td width=25% valign=top>
            <table width="100%" border="0" cellspacing="1" cellpadding="1" class="tb">
              <tr class="tbheader" height="25"> 
		        <td width="10%"></td>
			    <td width="70%">Username</td>
			    <td width="20%">Times</td>		    
              </tr>

<!--
EOT;
$index = 1;
foreach($top_login_ary as $k=>$v){
print <<<EOT
-->
              
              <tr class="tbcontent1" height="48"> 
		        <td>&nbsp;{$index}</td>
                <td>&nbsp;<a href="c_customer_list.php?action=search&key={$user_ary[$v['id']]}" target="_blank">{$user_ary[$v['id']]}</a></td>
                <td>&nbsp;{$v['num']}</td>
              </tr>

<!--
EOT;
$index++;
} print <<<EOT
--> 

                            
            </table>
            </td>
            
            <td width=5></td>
            
            <td width=40% valign=top>
            <table width="100%" border="0" cellspacing="1" cellpadding="1" class="tb">
              <tr class="tbheader" height="25"> 
		        <td width="10%"></td>
			    <td width="70%">Product Name</td>
			    <td width="20%">Times</td>		    		    
              </tr>

<!--
EOT;
$index = 1;
foreach($top_product_ary as $k=>$v){
print <<<EOT
-->
              
              <tr class="tbcontent1" height="48"> 
		        <td>&nbsp;{$index}</td>
                <td>&nbsp;<a href="p_product.php?key={$code_ary[$v['id']]}" target="_blank">{$product_ary[$v['id']]}({$code_ary[$v['id']]})</a></td>
                <td>&nbsp;{$v['num']}</td>
              </tr>

<!--
EOT;
$index++;
} print <<<EOT
--> 

                            
            </table>
            </td>
            
            <td width=5></td>
            
            <td width=25% valign=top>
            <table width="100%" border="0" cellspacing="1" cellpadding="1" class="tb">
              <tr class="tbheader" height="25"> 
		        <td width="10%"></td>
			    <td width="70%">Keyword</td>
			    <td width="20%">Times</td>		    			    
              </tr>

<!--
EOT;
$index = 1;
foreach($top_search_ary as $k=>$v){
print <<<EOT
-->
              
              <tr class="tbcontent1" height="48"> 
		       <td>&nbsp;{$index}</td>
                <td>&nbsp;<a href="p_product.php?key={$v['keyword']}" target="_blank">{$v['keyword']}</a></td>
                <td>&nbsp;{$v['num']}</td>
              </tr>

<!--
EOT;
$index++;
} print <<<EOT
--> 

                            
            </table>
            </td>
            
            </tr></table>

          </td>
        </tr>
      </table>
      
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p></td>
  </tr>
</table>
<!--Content End-->

<!--
EOT;
?>-->